<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id="root">
        <div>
            <p>{{name.firstname}}</p>
            <p>{{name.lastname}}</p>
        </div>
        <p>{{message}}</p>
    </div>
    <script src="https://cdn.bootcdn.net/ajax/libs/vue/2.6.12/vue.js"></script>
    <script>
        let vue = new Vue({
            el: '#root',
            data: {
                name: {
                    firstname: '李',
                    lastname: 'hua'
                },
                message: '你好啊！'
            },
            methods: {
                Getname() {
                    console.log(this.message)
                }
            },
            created () {
                this.Getname()
            },
        })
        let obj = {
            name: {
                firstname: '李',
                lastname: 'hua'
            },
            message: '你好啊！'
        }
        let prop = Object.getOwnPropertyDescriptor(obj,"name")
        console.log(prop)
    </script>
</body>

</html>